From 4daf815258658c254e648e9d3be762f21a28da66 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 30 Dec 2003 11:42:37 +0000 Subject: [PATCH] (rmail-convert-to-babyl-format): Fix off-by-one error in arguments to base64-decode-region. Remove ^M characters after decoding base64. --- lisp/mail/rmail.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 512712ec4bc..6185fd12286 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -1836,9 +1836,12 @@ It returns t if it got any new messages." (when (condition-case nil (progn - (base64-decode-region header-end (point)) + (base64-decode-region (1+ header-end) (point)) t) (error nil)) + (goto-char header-end) + (while (search-forward "\r\n" (point-max) t) + (replace-match "\n")) ;; Change "base64" to "8bit", to reflect the ;; decoding we just did. (goto-char base64-header-field-end) -- 2.30.2